package com.cool.shark.service;

import com.cool.shark.pojo.vo.BannerVO;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.List;

/**
 * @Name: banner
 * @Author: 西风残叶
 * @Date: 2024/4/11 18:39
 * @Version: 1.0
 * @TODO: TODO
 */
@SpringBootTest
@Slf4j
public class banner {
    @Autowired
    private BannerService service;

    @Test
    public void list(){
        List<BannerVO> list = service.list();
        log.info("list:{}",list);
        list.forEach(banner -> {
            log.info("banner:{}",banner);
        });
    }
}
